<%-- 
    Document   : listamodelo
    Created on : 13/04/2013, 13:40:30
    Author     : helton
--%>

<%@page contentType="text/html" pageEncoding="UTF-8" 
        import="model.entity.Modelo,Dao.ModeloDao,java.util.ArrayList" %>
<jsp:useBean id="listModelo" type="ArrayList" scope="request"/>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Lista de Modelo</title>
    <link rel="stylesheet" href="css/estilo.css" type="text/css" />
  </head>
  <body>
    <h1>Lista de Modelos</h1>
    <div class="cadastrarModelo">
    <a href="/av1/cadmodelo.jsp">Cadastrar Modelo</a>
    <table border="1">
      <tr>
        <td>Codigo do Modelo</td>
        <td>Modelo</td>
        <td>Marca</td>
      </tr>
      <c:forEach items="${listModelo}" var="obj">
        <tr>
          <td>${obj.idModelo}</td>
          <td>${obj.descModelo}</td>
          <td>${obj.descMarca}</td>
          <td><a href="/av1/selectmodelo?idmodelo=${obj.idModelo}">Alterar</a></td>
          <td><a href="/av1/excluirmodelo?idmodelo=${obj.idModelo}">Excluir</a></td>
        </tr>
      </c:forEach>
    </table>
    </div>
  </body>
</html>
